Repository navigation
fix upload route priority - #31
Merged
Merged
Conversation
fleetingbytes
commented
Nov 30, 2026
Owner
- fix: queue whole routes before the next (per-route Athena priority)
- fix: detect uploaded segments by path presence, not array length
Athena processes lower priority numbers first and only has 99 levels. Previous sequential ranking mixed routes once a route exceeded the limit or when routes were enqueued separately. Batches are still sorted by route → segment → log type, but every file of the same route now receives the same priority (route rank, 1..=99). Athena therefore finishes one route completely before starting the next. Within a route insertion order is preserved via created_at. Queue tab display sort is updated to match (route first for both active and pending items) so the list reflects the intended device order. Documented in TDR-007.
RouteFiles arrays are lists of signed URLs containing the storage key
`{route_ts}/{n}/{filename}`, not dense prefixes. Length-based checks
(`n < array.len()`) treated already-present segments as missing when
gaps existed, so the same files were re-queued and lcLFWD stayed
partial even after the Athena queue drained.
missing_route_paths, upload_status_symbols, and the fully-uploaded
cache now use the same contains-needle test as comma Connect.
When the upload queue goes from non-empty to empty the TUI also
re-fetches route files so status updates without a manual Ctrl-r.
Documented in TDR-007.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.